﻿@namespace CyssBlazor.Shared.Pages.Commons
@page "/errors"

<style>
    .content {
        width: 100%;
        word-wrap: break-word;
        word-break: break-all;
        overflow: hidden;
    }
    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
</style>
<Collapse ShowArrow="true" IsAccordion ="true">
    <CollapseItems>
        @foreach (var item in ExceptionHelper.GetMessages.OrderByDescending(x => x.Time))
        {

            var Title = $"时间:{item.Time.ViewDateTime()}  标题： {item.Action}";
            <CollapseItem Text="@Title" IsCollapsed="true">
                <div class="content">
                    <pre> @item.Content</pre>
                </div>
            </CollapseItem>
        }
    </CollapseItems>
</Collapse>

@code {
  
}
